package com.zhp.service.impl;

import com.zhp.dao.UserDao;
import com.zhp.dao.impl.UserDaoImpl;
import com.zhp.pojo.HUser;
import com.zhp.pojo.HUserinfo;
import com.zhp.service.UserService;

import java.util.List;

/**
 * @date 2023/4/11
 * @desc
 */
public class UserServiceImpl implements UserService {


    UserDao userDao = new UserDaoImpl();

    @Override
    public HUser login(HUser hUser) {
        return userDao.login(hUser);
    }


    @Override
    public int register(HUser hUser) {
        return userDao.register(hUser);
    }

    @Override
    public List<HUserinfo> findUserByKsid(String tid) {
        return userDao.findUserByKsid(tid);
    }

    @Override
    public HUserinfo findUserInfoById(int did) {
        return userDao.findUserInfoById(did);
    }

    @Override
    public int getDoctorDnum(String edid) {
        return userDao.getDoctorDnum(edid);
    }
}
